package com.takeoutsystem.dao;

import com.takeoutsystem.bean.AdminAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AdminAccountMapper {
    @Select("select * from admin_account where username =#{username} and password =#{password}")
    AdminAccount selectByAllInfo(AdminAccount adminAccount);
    @Update("update admin_account set password=#{password} where username=#{username}")
    int updatePasswordByUser(AdminAccount adminAccount);
}
